home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Developer Connection Student Program
/
ADC Tools Sampler CD Disk 3 1999.iso
/
Cool Demos, SDKs, & Tools
/
Demos⁄Tools⁄Offers
/
Script Compiler
/
Script Compiler Release Notes
< prev
Wrap
Text File
|
1999-05-24
|
6KB
|
138 lines
========================================================================
Script Compiler Release Notes
========================================================================
Version: CW Pro 5
Date: May 24, 1999
Author: Josef W. Wankerl
========================================================================
This directory contains a preliminary version of the Script Compiler.
The Script Compiler was written during my spare time for fun and is not
intended to be a robust full-featured scripting environment.
Nevertheless, it's still a pretty nifty tool and I find it to be quite
useful.
One of the more "interesting" things you can do is use an external
editor, such as Script Editor, to edit your scripts. Make an alias of
Script Editor and rename it to "External Editor" and place it in the
(Helper Apps) folder. Then turn on the Use External Editor checkbox in
the IDE preferences. The Script Editor doesn't send Apple Events to
the IDE, so after you modify a file, be sure you choose the "Synchronize
Modification Dates" menu item from the IDE project menu.
Metrowerks does not currently offer technical support for this product.
========================================================================
Preliminary documentation
========================================================================
The Script Compiler is a full-featured OSA-compliant script compiler.
By default, files ending with ".script" are mapped to the script
compiler. If you desire, you can change this setting in the File
Mappings preference panel.
To get quickly up and running, use the AppleScript stationery item to
begin a project.
When you are working with a script project, the "debugging dots" column
in the project window control whether or not your compiled script can be
decompiled back into source code. When a dot is in the debugging column
for a script source code file, a decompile (or disassembly) is possible.
There are two preference panel specific to the script compiler.
The Script Language panel lets you set which OSA scripting language is
used to compile source code. The most common OSA scripting language is
AppleScript, and that's probably what you'll use. The script compiler
is versatile enough to support any OSA language which is compilable.
The Script Target panel lets you set properties of the compile script
output file. The Script Target panel has several options:
Project Type: Compiled
When the project type item is set to Compiled, the resulting file is a
"compiled script" file. The three suboptions for compiled script files
are:
o File Name - This is the filename given to the compiled script.
o Creator - This is the creator code given to the compiled script.
Some useful values to put in this field are "ToyS" for Script Editor
and "MWrs" for the supplied Run Script helper application.
o Description - The description popup lets you set how a description
is added to the output file. If the setting is None, no
descriptive text is added to the ouput file. If the setting is Use
".desc" file, the first file in the project with a ".desc"
extension is used for the descriptive text.
Project Type: Application
When the project type item is set to Application, the resulting file is
an applet or droplet file. The four suboptions for applets are:
o File Name - This is the filename given to the compiled applet.
o Stay Open - This controls what happens when the applet finishes its
main execution path. When this item is set, the applet does not
automatically quit when it is finished.
o Never Show Startup Screen - This controls what happens when the
applet first begins execution. When this item is set, the standard
startup screen for applets will not be shown.
o Description - The description popup lets you set how a description
is added to the output file. If the setting is None, no
descriptive text is added to the ouput file. If the setting is Use
".desc" file, the first file in the project with a ".desc"
extension is used for the descriptive text.
========================================================================
New Features in This Version
========================================================================
* None.
========================================================================
Bugs Fixed in This Version
========================================================================
* None.
========================================================================
Known Bugs and Incompatibilities
========================================================================
* No syntax hilighting for script lanugages is in the IDE.
* No debugging support for scripts -- I'm still thinking about it.
* While you can place multiple .script files in a project, only the
first in the link order is used when writing out the final script.
Currently there is no known workaround for this. If you have any
ideas on how multiple .script files in a project should work, by all
means let me know.
========================================================================
Contacting Metrowerks
========================================================================
For bug reports, technical questions, and suggestions, please use the
forms in the Release Notes folder on the CD, and send them to
support@metrowerks.com
See the CodeWarrior on the Nets document in the Release Notes folder for
more contact information, including a list of Internet newsgroups,
online services, and patch and update sites.
========================================================================
Josef W. Wankerl
Quality Assurance
Metrowerks Corporation